-- GENERATED SPELL FOR [Bloodfeather Matriarch] --


function spell0_2021(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(332,pUnit)
pUnit:RegisterEvent('Sorts_2021', 2000, 1)
end

function spell1_2021(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2021', 3000, 1)
end

function Sorts_2021(pUnit, Event)
local choix_sorts_2021 = math.random(0, 1)
if choix_sorts_2021 == 0 then
pUnit:RegisterEvent('spell0_2021', 1, 1)
end
if choix_sorts_2021 == 1 then
pUnit:RegisterEvent('spell1_2021', 1, 1)
end
end

function mob2021_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2021', math.random(1500, 3000), 1)
end

function mob2021_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2021_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2021_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2021, 1, 'mob2021_Action')
RegisterUnitEvent(2021, 2, 'mob2021_Leave')
RegisterUnitEvent(2021, 3, 'mob2021_Kill')
RegisterUnitEvent(2021, 4, 'mob2021_Die')
